//
//  UIView+Extension.swift
//  IPlan
//
//  Created by robot on 3/19/16.
//  Copyright © 2016 codeFighter.com. All rights reserved.
//

import UIKit

extension UIView{

    
    /**
     *  original.x
     */
    var x:CGFloat{
        
        return self.frame.origin.x
        
    }
    /**
    *  original.y
    */
    
    var y:CGFloat{
    
        return self.frame.origin.y
        
    }
    
    /**
    *  frame.width
    */
    
    var width:CGFloat{

        return self.frame.size.width
    }

    /**
    *  frame.height
    */
    var height:CGFloat{
    
        return self.frame.size.height
    
    }
    
    /**
    *  frame's bottom
    */
    
    var bottom:CGFloat{
    
    return self.frame.origin.y + self.frame.size.height
    
    }
    

}
